/**
 * goods模块接口列表
 */

import base from './base'; // 导入接口域名列表
import axios from '@/utils/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块

const comments = {
        
    getCommentsTypeList(){
        return axios.get(`${base.comments}/getCommentsTypeList`);
    },
    addComments(params: any) {
        return axios.post(`${base.comments}/addComments`, qs.stringify(params));
    },
    getCommentsList(params: any){
        return axios.post(`${base.comments}/getCommentsList`, qs.stringify(params));
    },
    deleteComments(id: any){
        return axios.delete(`${base.comments}/deleteComments/${id}`);
    },
    deleteCommentsByIds(params: any){
        return axios.post(`${base.comments}/deleteCommentsByIds`, {ids:params});
    },
    
}

export default comments;